package com.exam.controller;


import com.exam.service.IAdminService;
import com.exam.util.RespBean;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 管理员信息表 前端控制器
 * </p>
 *
 * @author zyh
 * @since 2023-03-09
 */
@Slf4j
@RestController
@RequestMapping("/admin")
public class AdminController {

    @Autowired
    private IAdminService iAdminService;

    @PutMapping
    public RespBean updateAdminPwd(String pwd,String xpwd,String adminId){
        return iAdminService.upadteAdminPwd(pwd,xpwd,adminId);
    }

}
